

float getPrincipal(){
	float principal;
	printf("What is your principal amount?\n");
	scanf("%g", principal);
	return principal;
}

//gets rate and converts it into decimal form
float getRate(){
	printf("What is the rate? This is a percentage value.\n 
		   Example: if your rate is 50%, type 50");
	scanf("%g", rate);
	rate = rate/100;
	return rate;
}

float getsTime(){
	printf("What is the time in years of the investment?");
	scanf("%g",time);
	return time;
}

int getFrequency()
	printf("How many times per year will your interest compounded?\n
		   Example: Biannually = 2, Quarterly = 4");
	scanf("%i", frequency)
	return frequency;
}

printResponse(float interest){
printf("Your interest earned is %g", interest);
}

int inquireContinuation(){
	char goAgain;
	printf("Would you like price another parcel? y or n\n");
	scanf("\n%c", &goAgain);
	printf("\n");     
	return (goAgain == 'n'); //returns true if user inputs n
}